package cn.aifeix.fallback;

import cn.aifeix.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class UserFallback {
    public static User getUserByIdFallback(@PathVariable("id") Long id, Throwable e) {
        e.printStackTrace();
        return new User(-1L,"熔断了","熔断了，别搞了");
    }
}
